﻿@inject ApiHelper apiHelper
@{
    ViewData["navs"] = await apiHelper.GetNavigateAsync();
    if (ViewData["siteInfo"] == null)
    {
        Models.SiteInfoModel info = await apiHelper.GetSiteInfoAsync();
        ViewData["siteInfo"] = info;
    } 

    SiteInfoModel siteInfo = ViewData["siteInfo"] as SiteInfoModel??new SiteInfoModel();
    ViewData["title"] = siteInfo.MetaTitle;
    ViewData["description"] = siteInfo.MetaDescription;

   
}
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2" />
    <title>@ViewData["title"]</title>
    <meta name="description" content="@ViewData["description"]">
    <meta name="referrer" content="no-referrer-when-downgrade">
    <meta property="og:site_name" content="@siteInfo.Title">
    <meta property="og:type" content="website">
    <meta property="og:title" content="@siteInfo.OgTitle">
    <meta property="og:description" content="@siteInfo.OgDescription">
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content="@siteInfo.TwitterTitle">
    <meta name="twitter:description" content="@siteInfo.TwitterDescription">
    <meta name="twitter:url" content="@siteInfo.TwitterUrl">
    <meta name="twitter:image" content="@siteInfo.TwitterImage">
    <link rel="icon" type="image/x-icon" href="public/img/favicon/favicon.ico" />
    <link rel="stylesheet" href="/public/css/libs.css">
    <link rel="stylesheet" href="/public/css/style.css">
    <link rel="preload" href="/public/fonts/istok-web-v15-latin/istok-web-v15-latin-regular.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="/public/fonts/istok-web-v15-latin/istok-web-v15-latin-700.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="/public/fonts/montserrat-v15-latin/montserrat-v15-latin-700.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="/public/fonts/montserrat-v15-latin/montserrat-v15-latin-600.woff2" as="font" type="font/woff2" crossorigin>

    <link rel="preload" href="/public/fonts/material-icons/material-icons.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="preload" href="/public/fonts/material-icons/material-icons-outlined.woff2" as="font" type="font/woff2" crossorigin>

    <meta name="generator" content={Astro.generator} />

    @await RenderSectionAsync("css", false)
</head>
<body>
    <div class="main">
        <div class="main-inner">

            @{
                await Html.RenderPartialAsync("MobileMenu");
                await Html.RenderPartialAsync("DownloadBar");
                await Html.RenderPartialAsync("Header");
            }

            @RenderBody()
        </div>
        @{
            await Html.RenderPartialAsync("Footer");
        }
    </div>


    <script is:inline src="/public/libs/jquery/jquery.min.js"></script>
    <script is:inline src="/public/libs/lozad/lozad.min.js"></script>
    <script is:inline src="/public/libs/device/device.js"></script>
    <script is:inline src="/public/libs/ScrollToFixed/jquery-scrolltofixed-min.js"></script>
    <script is:inline src="/public/libs/spincrement/jquery.spincrement.min.js"></script>
    <script is:inline src="/public/libs/jquery-validation-1.19.3/jquery.validate.min.js"></script>
    <script is:inline src="/public/js/custom.js"></script>
    @await RenderSectionAsync("js", false)
</body>
</html>

<style is:global>
    :root {
        --accent: 136, 58, 234;
        --accent-light: 224, 204, 250;
        --accent-dark: 49, 10, 101;
        --accent-gradient: linear-gradient( 45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60% );
    }

    html {
        font-family: system-ui, sans-serif;
        background: #13151a;
    }

    code {
        font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
    }
</style>










